home *** CD-ROM | disk | FTP | other *** search
- /* Provider Configuration Follows:
- Name NullModemLogin ; Name for this configuration
- DialUp 0
- Interface slip ; Interface Name
- InterfaceConfig "" ; Provider specific Sana2 options
- NeedSerial 1
- IPDynamic 0 ; 1 = YES, 0 = NO
- IPAddr ; IP-address if static
- NSDynamic 0 ; 1 = YES, 0 = NO
- UseBootP 0 ; 1 = YES, 0 = NO
- MTU 1500 ; Provider specific
- Phone ; Provider phone number (without spaces)
- */
- /* The rest is the Dialer script for this provider */
- options results
- signal on error
-
- ShowConsole
- Set WaitForTimeout 10
- retries = 10
-
- Status "Asking for password..."
- Get PassWord
-
- Status "Waiting for login prompt..."
- do while (1)
- SendLn
- WaitFor! "login:"
- if (result = 1) then do
- Status "Logging in..."
- SendLn "ppp"
- Pause 2
- SendLn PassWord
- exit 0 /* succesfull exit */
- end
- retries = retries - 1
- if (retries = 0 ) then exit 10
- end
-
- exit 10;
-
- error:
- Say "Command on line" SIGL "returned" RC ":" SerScript.LASTERROR
- Exit 10
-